<template>
  <a-descriptions title="请求详情" size="small" :column="1" bordered>
    <a-descriptions-item label="请求日期">
      {{ props.vr.requestTs }}
    </a-descriptions-item>
    <a-descriptions-item label="访问方式">{{
      appStore.aryVgt.find((x) => x.key == props.vr.vgt.T).label
    }}</a-descriptions-item>
    <a-descriptions-item label="额外访问权限">{{
      Utils.describeShareRuleModel(props.vr.ruleM)
    }}</a-descriptions-item>
    <a-descriptions-item label="写数据">
      {{ props.vr.writeAble ? "是" : "否" }}
    </a-descriptions-item>
  </a-descriptions>
</template>
<script setup>
import CommonDefine from "@/component/CommonDefine";
import Utils from "@/component/Utils";

const appStore = CommonDefine.appStore();
const props = defineProps({ vr: Object });
</script>
